package com.tudouji.project.flow.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tudouji.project.flow.mapper.SmsruleMapper;
import com.tudouji.project.flow.domain.Smsrule;
import com.tudouji.project.flow.service.ISmsruleService;

/**
 * 消息发送规则Service业务层处理
 * 
 * @author tudouji
 * @date 2021-05-20
 */
@Service
public class SmsruleServiceImpl implements ISmsruleService 
{
    @Autowired
    private SmsruleMapper smsruleMapper;

    /**
     * 查询消息发送规则
     * 
     * @param guid 消息发送规则ID
     * @return 消息发送规则
     */
    @Override
    public Smsrule selectSmsruleById(String guid)
    {
        return smsruleMapper.selectSmsruleById(guid);
    }

    /**
     * 查询消息发送规则列表
     * 
     * @param smsrule 消息发送规则
     * @return 消息发送规则
     */
    @Override
    public List<Smsrule> selectSmsruleList(Smsrule smsrule)
    {
        return smsruleMapper.selectSmsruleList(smsrule);
    }

    /**
     * 新增消息发送规则
     * 
     * @param smsrule 消息发送规则
     * @return 结果
     */
    @Override
    public int insertSmsrule(Smsrule smsrule)
    {
        return smsruleMapper.insertSmsrule(smsrule);
    }

    /**
     * 修改消息发送规则
     * 
     * @param smsrule 消息发送规则
     * @return 结果
     */
    @Override
    public int updateSmsrule(Smsrule smsrule)
    {
        return smsruleMapper.updateSmsrule(smsrule);
    }

    /**
     * 批量删除消息发送规则
     * 
     * @param guids 需要删除的消息发送规则ID
     * @return 结果
     */
    @Override
    public int deleteSmsruleByIds(String[] guids)
    {
        return smsruleMapper.deleteSmsruleByIds(guids);
    }

    /**
     * 删除消息发送规则信息
     * 
     * @param guid 消息发送规则ID
     * @return 结果
     */
    @Override
    public int deleteSmsruleById(String guid)
    {
        return smsruleMapper.deleteSmsruleById(guid);
    }
}
